export const asyncroutes=[
    {
        path:'/setting',
        name:'Setting',
        component:() => import('../views/setting/index.vue'),
        meta:{
            title:'网站设置',
            auth:['admin'],
            icon:'SettingOutlined'
        },
        redirect:'SettingIndex',
        children:[
            {
                path:'/setting/index',
                name:'SettingIndex',
                component:() => import('../views/setting/siteSet.vue'),
                meta:{
                    title:'系统设置',
                    auth:'admin',
                    icon:'SettingOutlined'
                },
                children:[]
            },
            {
                path:'/setting/password',
                name:'Password',
                component:() => import('../views/setting/passWord.vue'),
                meta:{
                    title:'修改密码',
                    auth:'admin',
                    icon:'LockOutlined'
                },
                children:[]
            },
        ]
    },
    {
        path:'/User',
        name:'User',
        component:() => import('../views/member/index.vue'),
        meta:{
            title:'会员管理',
            auth:['admin'],
            icon:'UserSwitchOutlined'
        },
        redirect:'/User/index',
        children:[
            {
                path:'/User/index/list',
                name:'Uindex',
                meta:{
                    title:'用户管理列表',
                    auth:['admin'],
                    icon:'UserOutlined',
                },
                component:() => import('../views/member/Uindex.vue'),
                children:[{
                    path:'/User/index/add',
                    name:'addUser',
                    meta:{
                        title:'添加用户',
                        auth:['admin'],
                        icon:'',
                    },
                    component:() => import('../views/member/AddUser.vue'),
                    children:[],
                    },
                    {
                    path:'/User/index/edit',
                    name:'editUser',
                    meta:{
                        title:'编辑用户',
                        auth:['admin'],
                        icon:'',
                    },
                    component:() => import('../views/member/EditUser.vue'),
                    children:[],
                    }
                ],
            },            
            {
                path:'/User/group',
                name:'Gindex',
                meta:{
                    title:'会员组管理',
                    auth:['admin'],
                    icon:'TeamOutlined'
                },
                component:()=>import('../views/member/Gindex.vue'),
                redirect:'',
                children:[
                    {
                        path:'/User/group/add',
                        name:'addGroup',
                        meta:{
                            title:'添加用户组',
                            auth:['admin'],
                            icon:'',
                        },
                        component:() => import('../views/member/AddGroup.vue'),
                        children:[],
                    },
                    {
                        path:'/User/group/edit',
                        name:'editGroup',
                        meta:{
                            title:'添加用户组',
                            auth:['admin'],
                            icon:'',
                        },
                        component:() => import('../views/member/EditGroup.vue'),
                        children:[],
                    }
                ],
            },
            
        ]
    },
    {
        path:'/Order',
        name:'Order',
        component:() => import('../views/order/index.vue'),
        meta:{
            title:'订单管理',
            auth:['admin'],
            icon:'BarChartOutlined'
        },
        redirect:'/Order/index',
        children:[
            {
                path:'/Order/index',
                name:'OrderIndex',
                component:() => import('../views/order/Oindex.vue'),
                meta:{
                    title:'订单管理',
                    auth:['admin'],
                    icon:'BarsOutlined'
                },
                children:[
                    {
                        path:'/Order/index/detail',
                        name:'orderInfo',
                        component:() => import('../views/order/orderInfo.vue'),
                        meta:{
                            title:'订单详细',
                            auth:['admin'],
                            icon:''
                        },
                        children:[]
                    }
                ]
            }
        ]
    }
    ,
    {
        path:'/Record',
        name:'Record',
        component:() => import('../views/data/index.vue'),
        meta:{
            title:'数据管理',
            auth:['admin'],
            icon:'MinusSquareOutlined'
        },
        redirect:'/Record/payIndex',
        children:[
            {
                path:'/Record/payIndex',
                name:'payIndex',
                component:() => import('../views/data/PayIndex.vue'),
                meta:{
                    title:'在线支付记录',
                    auth:['admin'],
                    icon:'MinusSquareOutlined'
                },
                children:[]
            }
        ]
    },
    {
        path:'/Content',
        name:'Content',
        component:() => import('../views/content/index.vue'),
        meta:{
            title:'内容管理',
            auth:['admin'],
            icon:'DiffOutlined'
        },
        redirect:'/Content/catList',
        children:[
            {
                path:'/Content/NewsIndex',
                name:'NewsIndex',
                component:() => import('../views/content/NewsIndex.vue'),
                meta:{
                    title:'文章管理',
                    auth:['admin'],
                    icon:'DiffOutlined'
                },
                children:[
                    {
                        path:'/Content/NewsAdd',
                        name:'NewsAdd',
                        component:() => import('../views/content/NewsAdd.vue'),
                        meta:{
                            title:'添加新闻',
                            auth:['admin'],
                            icon:''
                        },
                        children:[]
                    },
                    {
                        path:'/Content/NewsEdit',
                        name:'NewsEdit',
                        component:() => import('../views/content/NewsEdit.vue'),
                        meta:{
                            title:'添加新闻',
                            auth:['admin'],
                            icon:''
                        },
                        children:[]
                    }
                ]
            },
            {
                path:'/Content/catList',
                name:'catList',
                component:() => import('../views/content/CatIndex.vue'),
                meta:{
                    title:'分类列表',
                    auth:['admin'],
                    icon:'SnippetsOutlined'
                },
                children:[
                    {
                        path:'/Content/addCat',
                        name:'addCat',
                        component:() => import('../views/content/CatAdd.vue'),
                        meta:{
                            title:'修改分类',
                            auth:['admin'],
                            icon:''
                        },
                        children:[]
                    },
                    {
                        path:'/Content/editCat',
                        name:'editCat',
                        component:() => import('../views/content/CatEdit.vue'),
                        meta:{
                            title:'修改分类',
                            auth:['admin'],
                            icon:''
                        },
                        children:[]
                    }
                ]
            }
        ]
    },    
    { 
        path: '/:pathMatch(.*)*',
        redirect: '/404NotFound',
        meta:{
            title:'错误',
            auth:[],
            icon:''
        },
        children:[]
    },
];
